import request from 'plugin/axios'


export function getProductList(params:any):Promise<any>{
    return request({
        url:'v1/product/list',
        params,
        method:'get'
    })
}

export function getProductDetail(params:any):Promise<any>{
    return request({
        url:'v1/product/detail/get',
        params,
        method:'get'
    })
}

export function addProduct(data:any):Promise<any>{
    return request({
        url:'v1/product/add',
        data,
        method:'post'
    })
}

export function editProduct(data:any):Promise<any>{
    return request({
        url:'v1/product/edit',
        data,
        method:'post'
    })
}     